package com.dapeis.api.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

/**
 * 短信通道 
 * Title:ISMSController.java ISMSController
 * Description:
 * @author yuanyong
 * @date 2017年4月20日 下午5:53:17 
 * Email: hzyuanyong@126.com
 *
 */
public interface ISMSController {
    /**
     * /{sendChannel}/send 发送渠道短信
     * 
     * @param sendChannel
     *            包含
     * @param contact
     *            发送的手机号
     * @param request
     * @return
     */
    @RequestMapping(value = "/{sendChannel}/send" ,method = RequestMethod.POST)
    public @ResponseBody JsonElement send(@PathVariable String sendChannel,
	    @RequestParam String contact, HttpServletRequest request);
}
